{extend name='common/_container'}
{block name="content"}
<div class="ibox float-e-margins">
<input type="hidden" name='log_id' id='log_id' value='{$log_id}' />
	<div class="ibox-content layui-form">
		<div class="form-horizontal" id="CodeInfoForm">
			<div class="row">
				<div class="col-sm-10">
				<!-- form start -->
					<div class="form-group">
						<label class="col-sm-3 control-label">用户名：</label>
						<div class="col-sm-9">
							<input type="text" id="username" value="{$info.username}" name="username" class="form-control" placeholder="请输入用户名">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">操作：</label>
						<div class="col-sm-9">
							<input type="text" id="event" value="{$info.event}" name="event" class="form-control" placeholder="请输入操作">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">登录IP：</label>
						<div class="col-sm-9">
							<input type="text" id="ip" value="{$info.ip}" name="ip" class="form-control" placeholder="请输入登录IP">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">最后登录时间：</label>
						<div class="col-sm-9">
							<input type="text" value="{if condition="$info.time neq ''"}{$info.time|date='Y-m-d H:i:s',###}{/if}" name="time"  placeholder="请输入最后登录时间" class="form-control layer-date" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" id="time">
						</div>
					</div>
				<!-- form end -->
				</div>
			</div>
			<div class="row btn-group-m-t">
				<div class="col-sm-10">
					<button type="button" class="btn btn-primary" onclick="CodeInfoDlg.add()" id="ensure">
						<i class="fa fa-check"></i>&nbsp;确认提交
					</button>
					<button type="button" class="btn btn-danger" onclick="CodeInfoDlg.close()" id="cancel">
						<i class="fa fa-eraser"></i>&nbsp;取消
					</button>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="__PUBLIC__/static/js/admin/Log.js?t=<?php echo rand(1000,9999)?>" charset="utf-8"></script>
<script src="__PUBLIC__/static/js/admin/upload.js" charset="utf-8"></script>
<script src="__PUBLIC__/static/old/plugs/layui/layui.js?t=1498856285724" charset="utf-8"></script>
<script>
layui.config({dir: '__PUBLIC__/static/old/plugs/layui/'});
	layui.use(['layer', 'form'], function () {
	window.layer = layui.layer;
	window.form = layui.form();
});
</script>


{/block}
